package com.wt.admin.mapper.model;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wt.admin.domain.dto.model.ModelListDTO;
import com.wt.admin.domain.entity.model.ModelListEntity;
import com.wt.admin.domain.vo.model.ModelListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ModelListMapper extends BaseMapper<ModelListEntity> {

    IPage<ModelListVO> modelList(Page<ModelListDTO> page, @Param("data") ModelListDTO data);

    List<ModelListVO> modelAll(@Param("data") ModelListDTO data);
}
